package com.binyouwei.designpatterns.behavior.strategy;

/**
 * @author 宾有为
 * Created on 2024/7/15 22:20
 * Social homepage: https://blog.csdn.net/baidu_41616022
 * @desc
 **/
public class StrategyContext {

    private StrategyStrategy strategy;

    public StrategyContext(StrategyStrategy strategy){
        this.strategy = strategy;
    }

    public int executeStrategy(int num1, int num2){
        return strategy.doOperation(num1, num2);
    }
}
